//
//  ReadCell.m
//  Leisure
//
//  Created by xalo on 16/6/29.
//  Copyright © 2016年 张凡. All rights reserved.
//

#import "ReadCell.h"

@interface ReadCell ()

@property (weak, nonatomic) IBOutlet UIImageView *coverimg;

@property (weak, nonatomic) IBOutlet UILabel *name;

@end

@implementation ReadCell

- (void)awakeFromNib {
    // Initialization code
}


//根据model来设置cell
- (void)setCellWithModel:(ReadModel *)model{
    
    self.name.text = model.name;
    [self.coverimg sd_setImageWithURL:[NSURL URLWithString:model.coverimg]];
}

@end
